Moltin Core

  • Allows access to Moltin API. Create this class with a Moltin client ID and an optional configuration to access the Moltin API, and get information such as products, categories, or interact with carts.

    See more

    Declaration

    Swift

    public class Moltin
  • MoltinConfig holds information about the general configuration of the SDK, such as the client ID or the locale, for use during API calls.

    See more

    Declaration

    Swift

    public struct MoltinConfig
  • MoltinQuery encapsulates all query parameters applied to a request, as well as converting these parameters to [URLQueryItem]

    Declaration

    Swift

    open class MoltinQuery
  • MoltinFilterOperator represents various operations that can be applied to MoltinRequest.filter(...) These parameters allow a user to filter resources.

    See more

    Declaration

    Swift

    public struct MoltinFilterOperator : RawRepresentable, Equatable
  • MoltinInclude represents various resources which can be included into other API calls, such as including the collections assigned to products This struct is for use in the MoltinRequest.include(...) method

    See more

    Declaration

    Swift

    public struct MoltinInclude : RawRepresentable, Equatable
  • MoltinError encapsultes various errors that the SDK can return, as well as returning additional information if there are errors such as decoding errors

    See more

    Declaration

    Swift

    public enum MoltinError : Error
  • Boxes up results into success or failure cases This enum will either return success, with the corresponding value with the correct type, or return failure, with the corresponding error

    See more

    Declaration

    Swift

    public enum Result<T>
  • PaginationResponse wraps around a list endpoint response, to give context to the user about the pagination information

    See more

    Declaration

    Swift

    open class PaginatedResponse<T> : Codable where T : Decodable, T : Encodable
  • PaginationMeta gives information about the pagination details to the user, such as result information and page information

    See more

    Declaration

    Swift

    open class PaginationMeta : Codable